﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL.buyCard
{
    public class BuyCardManager
    {
        public static bool IsExist(int cardList_id)
        {
            bool exist = false;

            IDAL.IDataControl dc = DALFactory.DALFactory.CreatInstance("SQLServer");

            dc.CommandText = "SELECT * FROM CardList_Tab WHERE cardList_id = @cardList_id";
            dc.AddParameter("@cardList_id", cardList_id);
            dc.ExecuteReader();
            if (dc.Reader.Read())
            {
                exist = true;
            }
            else
            {
                exist = false;
            }

            return exist;
        }
    }
}
